package com.tucue.dao;

import com.tucue.model.Consult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConsultMapper {
    int deleteByPrimaryKey(Integer consultid);

    int insert(Consult record);

    int insertSelective(Consult record);

    Consult selectByPrimaryKey(Integer consultid);


    List<Consult> selectAll(int customerType);

    //单个删除咨询
    int deleteConsult(@Param(value = "id") int id, @Param(value = "visible") int visible);

    //批量删除咨询
    int deleteConsultBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);


    //<!--更新 咨询-->
    int updateConsult(Consult record);

    int updateByPrimaryKey(Consult record);
}